{extend name="base" /} {block name="body"}
<div class="layui-body">
	<div class="navbar">
		<a><cite>广告管理</cite></a>&nbsp;<span class="layui-box">&gt;</span>
		<a href=""><cite>广告列表</cite></a>
	</div>
	<!--tab标签-->
	<div class="layui-tab layui-tab-brief">
		<div class="layui-tab-content">
			<table class="layui-table layui-form">
				<thead>
					<tr>
						<th style="width: 30px;">
							<input type="checkbox" lay-skin="primary" lay-filter="allChoose">
						</th>
						<th>标题</th>
						<th>广告图片</th>
						<th>广告链接</th>
						<th>广告类型</th>
						<th>编辑广告</th>
					</tr>
				</thead>
				<tbody>
					<form id="listForm">
						{foreach name="list" item="vo"}
						<tr>
							<td>
								<input type="checkbox" name="ids[]" value="{$vo.id}" class="layui-checkbox checkbox-ids" lay-skin="primary">
							</td>
							<td>{$vo.title}</td>
							<td><img style="width: 50px;height: 50px;" src="{$vo.thumb}"/></td>
							<td>{$vo.url}</td>
							<td>
								{$vo.type|get_ads}
							</td>
								<td>
								<a class="layui-btn layui-btn-status " href="edit_ads?id={$vo.id}"><i class="fa fa-edit"></i> 编辑</a>
							</td>
						</tr>
						{/foreach}
					</form>
				</tbody>
			</table>
			{$list->render()}
		</div>
	</div>
</div>
{/block}